<script setup lang="ts">
import { ArrowRight } from "@element-plus/icons-vue";
</script>

<template>
  <el-breadcrumb :separator-icon="ArrowRight">
    <el-breadcrumb-item to="/index/homepage">{{ $t("home") }}</el-breadcrumb-item>
    <template v-for="item in $route.matched.slice(1)" :key="item.path">
      <template v-if="item.meta.title != 'home'">
        <el-breadcrumb-item>
          <span>{{ $t((item.meta as any).title) }}</span>
        </el-breadcrumb-item>
      </template>
    </template>
  </el-breadcrumb>
</template>

<style scoped lang="less">
.el-breadcrumb {
  display: inline-block;
  line-height: 25px;
  margin-left: 15px;
}
</style>
